package com.czx;

import com.czx.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableAutoConfiguration
public class Application {

	@Autowired
	private TestService testService;

	@GetMapping("test")
	public String test() {
		return testService.getHost() + "," + testService.getUserName() + "," + testService.getPassword();
	}

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

}
